package com.yhq.spring.snowflake;

import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.date.LocalDateTimeUtil;
import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class TestSnowflake {


    public static void main(String[] args) {
        String orderNo ="Q"+ LocalDateTimeUtil.format(LocalDateTime.now(), "")+IdUtil.simpleUUID().substring(0,5);
        System.out.println(orderNo);
    }
}
